package com.ruoyi.cems.service.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cems.mapper.BmsEVCContactMapper;
import com.ruoyi.cems.domain.BmsEVCContact;
import com.ruoyi.cems.service.IBmsEVCContactService;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 应急指挥部应急联络;Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-24
 */
@Service
public class BmsEVCContactServiceImpl implements IBmsEVCContactService 
{
    @Autowired
    private BmsEVCContactMapper bmsEVCContactMapper;

    /**
     * 查询应急指挥部应急联络;
     * 
     * @param ID 应急指挥部应急联络;主键
     * @return 应急指挥部应急联络;
     */
    @Override
    public BmsEVCContact selectBmsEVCContactByID(String ID)
    {
        return bmsEVCContactMapper.selectBmsEVCContactByID(ID);
    }

    /**
     * 查询应急指挥部应急联络;列表
     * 
     * @param bmsEVCContact 应急指挥部应急联络;
     * @return 应急指挥部应急联络;
     */
    @Override
    public List<BmsEVCContact> selectBmsEVCContactList(BmsEVCContact bmsEVCContact)
    {
        return bmsEVCContactMapper.selectBmsEVCContactList(bmsEVCContact);
    }

    /**
     * 新增应急指挥部应急联络;
     * 
     * @param bmsEVCContact 应急指挥部应急联络;
     * @return 结果
     */
    @Override
    public int insertBmsEVCContact(BmsEVCContact bmsEVCContact)
    {
        return bmsEVCContactMapper.insertBmsEVCContact(bmsEVCContact);
    }

    /**
     * 修改应急指挥部应急联络;
     * 
     * @param bmsEVCContact 应急指挥部应急联络;
     * @return 结果
     */
    @Override
    public int updateBmsEVCContact(BmsEVCContact bmsEVCContact)
    {
        return bmsEVCContactMapper.updateBmsEVCContact(bmsEVCContact);
    }

    /**
     * 批量删除应急指挥部应急联络;
     * 
     * @param IDs 需要删除的应急指挥部应急联络;主键
     * @return 结果
     */
    @Override
    public int deleteBmsEVCContactByIDs(String[] IDs)
    {
        return bmsEVCContactMapper.deleteBmsEVCContactByIDs(IDs);
    }

    /**
     * 删除应急指挥部应急联络;信息
     * 
     * @param ID 应急指挥部应急联络;主键
     * @return 结果
     */
    @Override
    public int deleteBmsEVCContactByID(String ID)
    {
        return bmsEVCContactMapper.deleteBmsEVCContactByID(ID);
    }

    /**
     * 根据变量控制表获取联系人
     * @param parentId
     * @return
     */
    @Override
    public List<BmsEVCContact> selectBmsEVCContactListByparentId(String parentId,String type){
        return bmsEVCContactMapper.selectBmsEVCContactListByparentId(parentId,type);
    }
}
